load("@io_bazel_rules_go//go:def.bzl", "go_test")

go_test(
    name = "admintest_test",
    timeout = "short",
    srcs = [
        "admin_test.go",
        "main_test.go",
    ],
    flaky = True,
    shard_count = 24,
    deps = [
        "//pkg/config",
        "//pkg/ddl",
        "//pkg/domain",
        "//pkg/errno",
        "//pkg/executor",
        "//pkg/kv",
        "//pkg/meta/autoid",
        "//pkg/meta/model",
        "//pkg/parser/model",
        "//pkg/session",
        "//pkg/sessionctx",
        "//pkg/sessionctx/variable",
        "//pkg/table",
        "//pkg/table/tables",
        "//pkg/tablecodec",
        "//pkg/testkit",
        "//pkg/testkit/testfailpoint",
        "//pkg/testkit/testsetup",
        "//pkg/testkit/testutil",
        "//pkg/types",
        "//pkg/util/codec",
        "//pkg/util/logutil",
        "//pkg/util/logutil/consistency",
        "//pkg/util/mock",
        "//pkg/util/redact",
        "@com_github_pingcap_errors//:errors",
        "@com_github_pingcap_failpoint//:failpoint",
        "@com_github_stretchr_testify//assert",
        "@com_github_stretchr_testify//require",
        "@com_github_tikv_client_go_v2//tikv",
        "@org_uber_go_goleak//:goleak",
        "@org_uber_go_zap//:zap",
    ],
)
